package fleet_management

class Admin {
	String userName
	String passWord
	String region
	String name
	String phoneNo
	String emailAddress
	String address

	static constraints = {
		userName(blank:false,nullable:false)
		passWord(blank:false,nullable:false)
		region inList:[
			'Master Admin',
			'Kathmandu',
			'Biratnagar',
			'Pokhara',
			'Butwal',
			'Nepalgunj',
			'Dhangadi'
		]
		name(blank:false,nullable:false)
		phoneNo(blank:false,nullable:false)
		emailAddress(blank:false,nullable:false)
		address(blank:false,nullable:false)
	}
	String toString(){
		return "${userName}"
		}
}
